package com.heaven.back;

import com.heaven.back.WebSocket.WebSocketUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * The type Back application.
 */
@SpringBootApplication
public class BackApplication {

    /**
     * The entry point of application.
     *
     * @param args the input arguments
     */
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(BackApplication.class);
        ConfigurableApplicationContext configurableApplicationContext = springApplication.run(args);
        WebSocketUtil.setApplicationContext(configurableApplicationContext);
    }
}
